<template>
  <div>
    <h3 v-text="title"></h3>
    <hr/>
    <article v-html="content"></article>
  </div>
</template>

<script>
export default {
  data () {
    return {
      title: null,
      content: null
    }
  },
  created () {
    this.getCon()
  },
  methods: {
    getCon () {
      this.axios.get('/goods/intro')
        .then(res => {
          this.title = res.data.title
          this.content = res.data.content
        })
        // eslint-disable-next-line
        .catch(err => mui.toast('请求失败'))
    }
  }
}
</script>

<style lamg="stylus" scoped>

</style>
